<div ng-controller="expertOrderCtrl">
    <div class="x_panel" >
        <div class="form-inline">
            <div class="form-group">
                <label>已处理：</label>
                <select class="form-control" ng-model="search.status"
                        ng-options="o[0] as o[1] for o in $root.yesNoDict">
                    <option value="">--请选择--</option>
                </select>
            </div>
            <button class="btn btn-primary" ng-click="find(1)" >查询</button>
            <button class="btn btn-default" ng-click="search={}" >重置</button>
        </div>
    </div>
    <table class="table table-bordered table-striped table-hover" >
        <thead class="title">
        <tr>
            <th class="text-center">NO</th>
            <th>姓名</th>
            <th>手机号</th>
            <th>性别</th>
            <th>年级</th>
            <th>三个自选科目</th>
            <th>总  分</th>
            <th>位次号</th>
            <th>预约专家类型</th>
            <th>预约日期</th>
            <th>已处理</th>
            <th>备注</th>
            <th>处理时间</th>
            <th style="width:120px">操作</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-if="pageModel.data.length == 0">
            <td colspan="100" class="text-center">暂无记录</td>
        </tr>
        <tr ng-repeat="item in pageModel.data">
            <td class="text-center">{{$index + 1+pageModel.pageSize*pageModel.pageIndex}}</td>
            <td>{{item.name}}</td>
            <td>{{item.phone}}</td>
            <td>{{item.sex|keyToValue:sex:'id':'val'}}</td>
            <td>{{item.grade}}</td>
            <td>{{item.subjects}}</td>
            <td>{{item.totalScore}}</td>
            <td>{{item.rankNum}}</td>
            <td>{{item.expertType|keyToValue:expertTypeDict}}</td>
            <td>{{item.createDate|date:'yyyy-MM-dd'}}</td>
            <td>{{item.dealStatus==1?'是':''}}</td>
            <td>{{item.dealContent}}</td>
            <td>{{item.dealTime|date:'yyyy-MM-dd'}}</td>
            <td>
                <span ng-click='deal(item)' class='btn btn-xs btn-link'><i class='fa fa-edit'></i>处理</span>
            </td>
        </tr>
        </tbody>
    </table>
    <div class="page-footer clearfix" >
        <page page-model="pageModel"></page>
    </div>
</div>